package com.ruoyi.nurse.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nurse.mapper.NurseScheduleMapper;
import com.ruoyi.nurse.domain.NurseSchedule;
import com.ruoyi.nurse.service.INurseScheduleService;

/**
 * 护工排班Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-26
 */
@Service
public class NurseScheduleServiceImpl implements INurseScheduleService 
{
    @Autowired
    private NurseScheduleMapper nurseScheduleMapper;

    /**
     * 查询护工排班
     * 
     * @param scheduleId 护工排班主键
     * @return 护工排班
     */
    @Override
    public NurseSchedule selectNurseScheduleByScheduleId(Long scheduleId)
    {
        return nurseScheduleMapper.selectNurseScheduleByScheduleId(scheduleId);
    }

    /**
     * 查询护工排班列表
     * 
     * @param nurseSchedule 护工排班
     * @return 护工排班
     */
    @Override
    public List<NurseSchedule> selectNurseScheduleList(NurseSchedule nurseSchedule)
    {
        return nurseScheduleMapper.selectNurseScheduleList(nurseSchedule);
    }

    /**
     * 新增护工排班
     * 
     * @param nurseSchedule 护工排班
     * @return 结果
     */
    @Override
    public int insertNurseSchedule(NurseSchedule nurseSchedule)
    {
        return nurseScheduleMapper.insertNurseSchedule(nurseSchedule);
    }

    /**
     * 修改护工排班
     * 
     * @param nurseSchedule 护工排班
     * @return 结果
     */
    @Override
    public int updateNurseSchedule(NurseSchedule nurseSchedule)
    {
        return nurseScheduleMapper.updateNurseSchedule(nurseSchedule);
    }

    /**
     * 批量删除护工排班
     * 
     * @param scheduleIds 需要删除的护工排班主键
     * @return 结果
     */
    @Override
    public int deleteNurseScheduleByScheduleIds(Long[] scheduleIds)
    {
        return nurseScheduleMapper.deleteNurseScheduleByScheduleIds(scheduleIds);
    }

    /**
     * 删除护工排班信息
     * 
     * @param scheduleId 护工排班主键
     * @return 结果
     */
    @Override
    public int deleteNurseScheduleByScheduleId(Long scheduleId)
    {
        return nurseScheduleMapper.deleteNurseScheduleByScheduleId(scheduleId);
    }
}
